package com.wanmait.recycle.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wanmait.recycle.pojo.RubbishUnit;
import com.wanmait.recycle.pojo.Unit;

public interface RubbishUnitMapper {
    int insert(RubbishUnit record);

    int insertSelective(RubbishUnit record);
    
   
    
    List<RubbishUnit> selectById(Integer id);
    //删除一天关联信息
	void deleteOneUnit(@Param("rubbishId")Integer rubbishId,@Param("unitId") Integer unitId);
	//添加一个关联信息
	void insertOneUnit(@Param("rubbishId")Integer rubbishId,@Param("unitId") Integer unitId);
	
	void deleteAllById(Integer id);
}